<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>Document</title>
</head>
<body>
  <script>
    var fn = function (num1, num2) {
      return num1 + num2;
    };

    (function (num1, num2) {
      console.log(num1 + num2);
    })(2, 3);

    document.body.onclick  = function () {
      alert('Hi, everybody!');
    };

    () => { };

    var fn = (num1, num2) => {
      return num1 + num2;
    };

    var fn = (num1, num2) => num1 + num2;

    var fn = name => {
      console.log(name);
    };
  </script>
</body>
</html>